package com.frank.news_client.bean;

public class News {
    private int id;
    private Topic topic;
    private String author;
    private String title;
    private String createDate;
    private String picPath;
    private String content;
    private String modifyDate;
    private String summary;

    public News() {
        super();
    }

    public News(int id, int tid, String author, String title, String createDate, String picPath, String content,
            String modifyDate, String summary) {
        super();
        setId(id);
        setTopic(tid);
        setAuthor(author);
        setTitle(title);
        setCreateDate(createDate);
        setPicPath(picPath);
        setContent(content);
        setModifyDate(modifyDate);
        setSummary(summary);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTopic() {
        return topic.getName();
    }

    public void setTopic(int tid) {
        Topic topic = new Topic();
        topic.setId(tid);
        this.topic = topic;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

}
